﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="RepairQualityManagement.aspx.cs" Inherits="WebApp.RepairQualities.RepairQualityManagement" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="scriptCssContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="titlePlaceHolder" runat="server">
    <asp:literal id="pageTitle" runat="server"></asp:literal>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="menuPlaceHolder" runat="server">
    <one:TabStrip ID="tspSystemAdministrator" runat="server">
        <one:Tab name="employeeManagement" NavigateUrl="~/Employees/EmployeeManagement.aspx" Text="<%$ Resources:Strings, EmployeeManagement%>" AllowRoles="Administrators"></one:Tab>
        <one:Tab Name="manufacturerManagement" NavigateUrl="~/Manufacturers/ManufacturerManagement.aspx" Text="<%$ Resources:Strings, ManufacturerManagement%>" AllowRoles="Administrators"></one:Tab>
        <one:Tab Name="parameterManagement" NavigateUrl="~/Parameters/ParameterManagement.aspx" Text="<%$ Resources:Strings, ParameterManagement%>" AllowRoles="Administrators"></one:Tab>
        <one:Tab Name="productTypeManagement" NavigateUrl="~/ProductTypes/ProductTypeManagement.aspx" Text="<%$ Resources:Strings, ProductTypeManagement%>" AllowRoles="Administrators"></one:Tab>
        <one:Tab Name="repairingTypeManagement" NavigateUrl="~/RepairingTypes/RepairingTypeManagement.aspx" Text="<%$ Resources:Strings, RepairingTypeManagement%>" AllowRoles="Administrators"></one:Tab>
        <one:Tab Name="repairQualitiesManagement" NavigateUrl="~/RepairQualities/RepairQualityManagement.aspx" Text="<%$ Resources:Strings, RepairQualityManagement%>" AllowRoles="Administrators"></one:Tab>
        <one:Tab Name="roleManagement" NavigateUrl="~/Roles/RoleManagement.aspx" Text="<%$ Resources:Strings, RoleManagement%>" AllowRoles="Administrators"></one:Tab>
        <one:Tab Name="statusManagement" NavigateUrl="~/StatusFolder/StatusManagement.aspx" Text="<%$ Resources:Strings, StatusManagement%>" AllowRoles="Administrators"></one:Tab>
        <one:Tab Name="userManagement" NavigateUrl="~/Users/UserManagement.aspx" Text="<%$ Resources:Strings, UserManagement%>" AllowRoles="Administrators"></one:Tab>    
    </one:TabStrip>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="contentPlaceHolder" runat="server">
    <fieldset title="Thông tin chất  lượng sửa chữa">
        <legend>Thông tin tìm kiếm</legend>
        <table style="width:100%; border:0px;">
            <tr>
                <td class="ISoft_LabelTitle" style="width:15%;">Chất  lượng sửa chữa</td>
                <td class="ISoft_Input" style="width:35%;">
                    <telerik:RadTextBox ID="txtRepairQualityName" Runat="server" Skin="<%$ Resources:Strings, Skin%>" MaxLength="100" Width="100%"></telerik:RadTextBox>
                </td>          
            </tr>
        </table>
    </fieldset>
    <table style="width:100%; border:0px;">
        <tr>
            <td class="ISoft_ButtonsRow">
                <telerik:RadButton ID="btnSearch" runat="server" 
                    Skin="<%$ Resources:Strings, Skin%>" Text="<%$ Resources:Strings, Search%>" 
                    Width="100px" onclick="btnSearch_Click"></telerik:RadButton>
                <telerik:RadButton ID="btnCreate" runat="server" 
                    Skin="<%$ Resources:Strings, Skin%>" Text="<%$ Resources:Strings, Create%>" 
                    Width="100px" onclick="btnCreate_Click"></telerik:RadButton>
            </td>
        </tr>

        <tr>
            <td>
                <telerik:RadGrid ID="grdResult" runat="server" AllowPaging="true" AllowSorting="true"
                                EnableEmbeddedSkins="true" 
                    Skin="<%$ Resources:Strings, Skin%>" onitemcommand="grdResult_ItemCommand" 
                    onitemcreated="grdResult_ItemCreated" 
                    onneeddatasource="grdResult_NeedDataSource">
                    <HeaderStyle Wrap="false" Font-Bold="true" HorizontalAlign="Center" Font-Size="10pt" />
                    <AlternatingItemStyle Font-Names="arial,tahoma,sans-serif" Font-Size="12px" BorderStyle="Solid"/>                
                    <ItemStyle Font-Names="arial,tahoma,sans-serif" Font-Size="12px" BorderColor="#2299DD"/>
                    
                    <PagerStyle  HorizontalAlign="Right" Mode="NextPrevNumericAndAdvanced"
                                PagerTextFormat="Chọn trang: {4} &amp;nbsp;|&amp;nbsp; Trang hiện tại: {0} / {1}, mẫu tin: {2} - {3} / {5}." AlwaysVisible="True"/>
                    
                    <MasterTableView AutoGenerateColumns="false" NoMasterRecordsText="<%$ Resources:Strings, NoMasterRecordsText%>">
            
                        <Columns>
                            <telerik:GridTemplateColumn HeaderText="STT">
                                <HeaderStyle Width="30px" />
                                <ItemStyle HorizontalAlign="Center" />
                                <ItemTemplate>
                                    <asp:Label style="text-align:center" id="lblSTT" runat="server" Text='<%# grdResult.CurrentPageIndex*grdResult.PageSize + grdResult.Items.Count+1 %>' />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                
                            <telerik:GridBoundColumn DataField="ID" UniqueName="ID" Visible="false">
                            </telerik:GridBoundColumn>
            
                            <telerik:GridBoundColumn HeaderText="Tên chất lượng" DataField="RepairQualityName" UniqueName="RepairQualityName" SortExpression="RepairQualityName">
                                <ItemStyle HorizontalAlign="Left" Width="40%"/>
                            </telerik:GridBoundColumn>                                                                                                                  
                
                            <telerik:GridTemplateColumn HeaderText="Sửa">
                                <ItemTemplate>
                                    <asp:ImageButton ID="imbEdit" runat="server" ImageUrl="~/images/Edit.gif" CommandName="cmdEdit"/>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" Width="30px" />
                            </telerik:GridTemplateColumn>
            
                            <telerik:GridTemplateColumn HeaderText="Xóa">
                                <ItemTemplate>
                                    <asp:ImageButton ID="imbXoa" runat="server" 
                                                    ImageUrl="~/images/Delete.gif"
                                                    CommandName="cmdDelete" OnClientClick="return ComfirmDelete();"/>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" Width="30px" />
                            </telerik:GridTemplateColumn>
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>
            </td>
        </tr>
    </table>
</asp:Content>
